#include <QCoreApplication>
#include <iostream>
#include "room.h"
#include "person.h"
#include "son.h"
using namespace std;

ostream& operator<<(ostream& out, Person  p) {
    out << "A: " <<   p.m_A << "B: " << p.m_B ;
    return out;
}

int main(int argc, char *argv[])
{
    Son s ;
    s.m_A =10;

    return 0;
}



int main2(int argc, char *argv[])
{
    // Person p(1,2);
    // cout  << p  <<endl ;

    // cout << p.m_A << "\t"  <<p.m_B <<endl;
    // cout << p;
    Person p1;
    p1.age =  110;
    Person p2;
    p2.age =13;
    bool b =  p1 > p2;
    cout <<  "B:" << b  <<endl;
    // int  r =  p1 > p2;

    return 0;
}


int main1(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    Room r1;
    Room r2;
    Room r3 =  r1+r2;
    cout <<"sitroom:" <<  r1.sitroom << endl;
    Room r4 =  r3+1;

cout <<"sitroom:" <<  r4.bedroom << endl;
    return a.exec();
}
